import Vue from 'vue'
import VueRouter from 'vue-router'
import login from './moudle/login'
import indexPage from './moudle/index'
import conmunication from './moudle/conmunication'
import shop from './moudle/shop'
import myhome from './moudle/myhome'

Vue.use(VueRouter)
const routes = [
    {
        path: '/',    //登录页面
        redirect: '/login',

    },
    ...login,
    ...indexPage,
    ...conmunication,
    ...shop,
    ...myhome


];
const router = new VueRouter({
    routes
})
export default router;